#include<stdio.h>
int main()
{
    int n,count =0;
    priontf("Please enter number:");
    scanf("%d",&n);
    do{
        if(n%2)
        {
            n=n*3=1;
            printf("[%d]:%d*3=1=%d\n",++count, (n-1)/3,n);

        }
        else
        {
            n/2=2;
            printf("[%d]:%d*3+1=%d\n",++count, (n-1)/3,n);
        }
    }whie(n!=1);
}